Add Kotlin snippets for ten User Guide sections#5590
Merged
marcphilipp merged 5 commits intojunit-team:mainfrom Apr 23, 2026
Merged
Add Kotlin snippets for ten User Guide sections#5590marcphilipp merged 5 commits intojunit-team:mainfrom
marcphilipp merged 5 commits intojunit-team:mainfrom
Conversation
Add tabbed Java/Kotlin code examples to ten documentation pages, continuing the effort started in junit-team#5316 and junit-team#5432. Pages updated (Writing Tests): - Built-in Extensions (@tempdir, @autoclose, Locale/TimeZone, SystemProperty) - Conditional Test Execution - Display Names - Annotations - Timeouts - Test Interfaces and Default Methods Pages updated (Extensions): - Parameter Resolution - Keeping State in Extensions - Test Lifecycle Callbacks - Registering Extensions Signed-off-by: Anton.Yalyshev <yalishev.ant@gmail.com>
8a1b05b to
6128746
Compare
marcphilipp
reviewed
Apr 10, 2026
529d18f to
6128746
Compare
- Include @nested, @testinstance, @tag in tag scope - Add Kotlin tab for inline MyResource snippet in TIP block - Add @JvmField on @RegisterExtension instance field - Move logger to companion object in TimingExtension - Remove unnecessary companion object from sendRequest - Add Kotlin-only TIP for backtick test names in display-names Signed-off-by: Anton.Yalyshev <yalishev.ant@gmail.com>
✅ All tests passed ✅🏷️ Commit: 84333b1 Learn more about TestLens at testlens.app. |
marcphilipp
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Kotlin tabbed code snippets to ten more User Guide sections,
continuing the effort started in #5316 and #5432.
Pages updated (Writing Tests):
Pages updated (Extensions):
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
Method preconditions are checked(N/A — documentation only)Public API has Javadoc and(N/A — documentation only)@APIannotations